import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { ModelSchema } from './entities/model-schema.entity'
import { FieldDefinition } from './entities/field-definition.entity'
import { MetadataService } from './services/metadata.service'
import { MetadataController } from './controllers/metadata.controller'
import { TableGeneratorService } from './services/table-generator.service'
import { RbacModule } from 'src/modules/rbac/rbac.module'

@Module({
  imports: [TypeOrmModule.forFeature([ModelSchema, FieldDefinition]), RbacModule],
  providers: [MetadataService, TableGeneratorService],
  controllers: [MetadataController],
  exports: [MetadataService],
})
export class MetadataModule {}
